package com.sit.dao;

import com.sit.pojo.*;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface adminMapper {
    public administrator login(String name);
    public int updatePwd(administrator admin);
    public administrator findAdminById(String id);
    public List<Readers> findAllReader();
    public Readers findReaderById(String id);
    public List<Readers> findReaderByName(String name);
    public int updateReader(Readers reader);
    public int deleteReader(String id);
    public List<js_card> findAllReaderCard();
    public int deleteReaderCard(String id);
    public int insertBook(books book);
    public int deleteBook(String id);
    public int updateBook(books book);
    public books findBookById(String id);
    public List<books> findBookByName(String name);
    public List<books> findAllBook();
    public int insertBookType(books_type bookType);
    public int deleteBookType(String id);
    public int updateBookType(books_type book);
    public books_type findBookTypeById(String id);
    public List<books_type> findAllBookType();
    public List<hisborrow> findAllBorrow();
    public int deleteBorrow(hisborrow borrow);
    public List<borrow> NowBorrow();
    public List<punish> findAllPunish();
    public List<Readers> findReaderByInput(Readers reader);
    public List<books> findBookByInput(books book);
    public List<books_type> findBookTypeByInput(books_type bookType);
}
